import java.awt.Color;
import java.awt.Graphics;

import becker.robots.icons.Icon;

/* Programmers: Abubakr
 * Date Created: Feb.27, 2012
 * Date Modified: Feb.27, 2012
 * Class Name: FinishIcon
 * Class Description: Extends the Icon class to create a icon which resembles
 * 					  a finish line.
 */

public class FinishIcon extends Icon {
	//Creates the FinishIcon with no parameters.
	public FinishIcon() {
		super();
	}
	//Used to draw the Finish icon. It is a checkered box.
	protected void paintIcon(Graphics g){ 
		g.setColor(Color.WHITE);
		g.fillRect(30, 0, 40, 80);
		g.setColor(Color.BLACK);
		g.fillRect(50, 0, 20, 20);
		g.fillRect(30, 20, 20, 20);
		g.fillRect(50, 40, 20, 20);
		g.fillRect(30, 60, 20, 20);
	}
}
